//
//  EntityView.h
//  genePool9b2b
//
//  Created by Greg Dunn on 2/8/10.
//  Copyright 2010 Apple Inc. All rights reserved.
//

#import "SSVector3D.h"
@class SSEntityController;
@class SSGame;

@interface SSEntityView : CCSprite {
	CCAnimation *normalAnimation;
	CCAnimation *fastAnimation;
	
	CCParticleSystem *emitter;
	
	SSEntityController *controller;
	
}

- (void) updateAnimation:(CCAnimation *)animation;

- (void) updateAnimationFast;

- (void) updateAnimationNormal;

- (CGPoint) updatePosition:(SSVector3D *)localForceVector;

- (void) run;

@property (readwrite,retain) CCParticleSystem *emitter;
//@property(nonatomic, readonly) SSEntityController *controller;
@property(nonatomic,retain)SSEntityController *controller;

-(void)downAndDeathWithDuration:(ccTime)duration fallDuration:(ccTime)fallDuration endPosition:(CGPoint)endPosition;

-(void)addTailParticleSun;

-(void)delete;

-(void)run:(SSGame *)game;

@end
